import { _decorator, Component, director, Node } from 'cc';
import { WXUtils } from './WXUtils';
const { ccclass, property } = _decorator;

@ccclass('Home')
export class Home extends Component {
    start() {
        // 初始化游戏圈
        WXUtils.createGameClubButton()
        WXUtils.gameClubButton?.show()
        // 初始化广告
        WXUtils.initAdvert()
        // 初始化分享
        WXUtils.initShare()
    }

    update(deltaTime: number) {

    }

    playGame() {
        WXUtils.gameClubButton?.hide();
        director.loadScene('main');
    }
}


